aux_source_directory(. SOURCESCODE)
add_library(kysdk-disk SHARED ${SOURCESCODE})
set_target_properties(kysdk-disk PROPERTIES VERSION 2.0.0 SOVERSION 1)
#add_executable(test-getdiskinfo test/getdiskinfo.c)
#add_executable(test-getdisklist test/getdisklist.c)
find_library(UDEV_LIB udev)
target_link_libraries(kysdk-disk blkid kysdk-log pthread systemd kysdk-config hd ${UDEV_LIB})
#target_link_libraries(test-getdiskinfo kysdk-disk)
#target_link_libraries(test-getdisklist kysdk-disk)
# target_link_libraries(test-getdiskinfo kysdk-disk blkid kysdk-log pthread systemd kysdk-config ${UDEV_LIB})
# target_link_libraries(test-getdisklist kysdk-disk blkid kysdk-log pthread systemd kysdk-config ${UDEV_LIB})

install(TARGETS kysdk-disk
	DESTINATION ${CMAKE_INSTALL_RPATH})

install(FILES libkydiskinfo.h
        DESTINATION include/kysdk/kysdk-system)
